#ifndef SINGLESELECTDIALOG_H
#define SINGLESELECTDIALOG_H

#include "YesNoPortrol.h"

/* 现在么有滑动的功能 */

class SingleSelectDialog : public YesNoPortrol
{
public:
					SingleSelectDialog();
					~SingleSelectDialog();
public:
	static SingleSelectDialog*	create(const char* titleStr, const char** arr, const uint size,
	                                       const uint defalut);
public:
	bool 				init(const char* titleStr, const char** arr, const uint size,
	                                       const uint defalut);
	const size_t			getRetCode() ;
private:
	void				selectCB(CCObject* obj);
private:
	CCSprite*			_mark;
	const char**			_textArr;
	uint 				_arrSize;
	size_t				_idx;
};

#endif // SINGLESELECTDIALOG_H
